package inheritance;

public class Kids extends Mankind{
    private int yearsOld;

    public Kids(){
        super();
        System.out.println("sub class constructor1");
    }

    public Kids(int sex, int yearsOld) {
        super(sex ,yearsOld);
        this.yearsOld = yearsOld;
        System.out.println("sub class constructor2");
    }

    @Override
    public void manOrWoman(){
        System.out.println("Kids");

    }

    public void ParentManOrWoman(){
        super.manOrWoman();
    }


    public void printAge() {
        System.out.println(yearsOld);
    }

    public static void main(String[] args) {
        Kids somekids = new Kids(1,12);
        somekids.printAge();
        somekids.manOrWoman();
        somekids.ParentManOrWoman();
        somekids.employeed();

    }
}
